"""
所有页面的基类
"""
from appium.webdriver.webdriver import WebDriver

class BasePage:

    def __init__(self,driver:WebDriver):
        self.driver = driver

    @property
    def toast_text(self):
        toast = self.driver.find_element_by_xpath('//android.widget.Toast')
        return toast.text